package in.muton.edushare.panels.upload.single;

import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.markup.html.AjaxLink;
import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
import org.apache.wicket.model.IModel;

import com.edushare.common.vo.FileDirectories;

import in.muton.edushare.EduSharePage;

public class SingleUploadModalPage extends EduSharePage {

	public SingleUploadModalPage(final ModalWindow mWin, IModel<FileDirectories> uploadDirectoryModel) 
	{
		add(new SingleUploadPanel("upanel", uploadDirectoryModel));
		add(new AjaxLink<Void>("closeLink"){

			private static final long serialVersionUID = 5923272274576668879L;

			@Override
			public void onClick(AjaxRequestTarget target) {
				mWin.close(target);
			}
			
		});
	}

}
